home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / comm / mebbs / grabmail.lha / GrabMail.docs next >
Text File  |  1994-11-30  |  3KB  |  60 lines

  1. GrabMail - Another Silly Arexx Script by Larry Cloud M3001
  2.  
  3. This one does something cool for anyone who feeds mail and/or files to
  4. someone else.  It allows them to grab their mail/files at logon.  Why
  5. create something like this, when they can poll just as easy?  Well, its
  6. nice to be able to grab stuff when your system is down, or if you're on
  7. your bossnode's system anyway.  Just stick the GrabMail.REXX in your
  8. MEBBSNET:REXX/ directory, and add the following line to your LOGON.TXT(.GRx)
  9. file(s):
  10.  
  11. ~v!REXX/MEBBSNET:REXX/GRABMAIL#
  12.  
  13. Also, you need to create a .CFG file for this program and stick it in your
  14. ear (oops, I mean your MEBBSNET:CONFIGFILES/ directory).  You can look at
  15. the example, or create your own.  What it contains is, a list of people you
  16. feed mail and/or files to, and their addresses.  Their name must be in all
  17. CAPS and the address must be separated by periods.  An example would be:
  18.  
  19. WILLIAM BOWLING
  20. 1.102.1011.0
  21. LARRY CLOUD
  22. 1.350.31.0
  23. KEITH TOWNSEND
  24. 1.366.1968.0
  25. JOE POINT
  26. 1.350.31.5
  27.  
  28. Anyway, this door gets launched at logon (as long as you put that line in
  29. your LOGON.xxx file), and searches through the configfile looking for a
  30. match of the name with the person who is on.  If it doesn't find a match,
  31. it exists quietly, so normal users never even know they're in a door.  On
  32. our system it takes about 1.7 seconds to search through 10 names, so they
  33. won't even notice anything is going on.  Now, if it DOES find a match, it
  34. then looks in the OUT: directory for anything addressed to them.  This is
  35. the only thing really hardcoded into the program, if you don't have your
  36. outbound mail directory assigned as OUT:, you probably should! ;)
  37. ANyway, it goes looking in the OUT: directory, and if it finds anything
  38. with their 4D address it builds up a list.  If it finds a ".FLO", it adds
  39. the contents of it too (yes, its even aware of path'ed FLOs, so your files
  40. don't HAVE to be in OUT: as well).  So once it has everything built up,
  41. it LHA's up the whole schebang and sends it to them with the internal file
  42. send command.  If the transfer is NOT successful, it exits cleanly and
  43. leaves everything alone.  If its successful, it deletes anything that was
  44. destined for their address.  It deletes mail and tics, it does NOT delete
  45. the actual files that were tic'ed, because they may be in someone else's
  46. FLO's as well.
  47.  
  48. Oh, almost forgot, it ASKS them if it should go through all this before it
  49. actually does it, IF they are in the .CFG and IF they have mail.  Could be
  50. they don't WANT to use such a nifty utility ;)
  51.  
  52. Well, as usual, these docs are almost as big as the program itself.  I've
  53. tested this thing for the last hour, but I have probably missed SOMETHING.
  54. Let me know how you like it.  I have to get ready for work now (its 6:10am).
  55. This little util only took about an hour to write and another hour to
  56. debug/test.
  57.  
  58. Larry Cloud - MEBBS E&S NW USA - Kitt's Korner - Fido 1:350/31  Max 90:181/10
  59. (206) 698-0515 USR Sportster 28.8k V.FC   (206) 698-7760 USR HST DS 14.4k
  60.